﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace ApplicationBase.Core.Model
{
    public class CommonResponseModel
    {
        public ResponseStatus Status { get; set; }
        public string Message { get; set; }
        public object? Data { get; set; }

        public CommonResponseModel()
        {
            Message = "Success";
        }

        public CommonResponseModel(string message) 
        { 
            Message = message;
        }

        public CommonResponseModel(ResponseStatus status, string message)
        {
            Status = status;
            Message = message;
        }

        public CommonResponseModel(ResponseStatus status, string message, object? data)
        {
            Status = status;
            Message = message;
            Data = data;
        }
    }

    public enum ResponseStatus
    {
        Success,
        Failure
    }
}
